package com.steven.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created with IntelliJ IDEA.
 * User: think
 * Date: 12-7-17
 * Time: 上午10:46
 * To change this template use File | Settings | File Templates.
 */
public class HelloWordTest  {



 public  static  void  main(String [] args){
     ApplicationContext  context= new ClassPathXmlApplicationContext("spring-config.xml") ;
     HelloWord helloWord=(HelloWord) context.getBean("helloworld");
     helloWord.show();

 }
}
